#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

void reverse(int arr[], int sz)
{
    int left = 0;
    int right = sz - 1;
    int temp = 0;

    while (left <= right)
    {
        temp = arr[left];
        arr[left] = arr[right];
        arr[right] = temp;

        left++;
        right--;

    }


}
int main()
{
    int i;
    int arr[] = { 1,2,3,4,5,6,7,8,9 };
    int sz = sizeof(arr) / sizeof(arr[0]);
    reverse(arr, sz);
    for (i = 0; i < sz; i++)
    {
        printf("%d", arr[i]);
    }

    return 0;
}